<?php

namespace App\Library\Redis;
use App\Library\RedisCommon;

/**
 * redis的全局统一封装类
 * Class RedisObj
 */
class RedisObj {

    private static $redisCommon;

    private function __construct()
    {
    }

    public static function instance()
    {
        if (empty(self::$redisCommon)) self::$redisCommon = new RedisCommon();
        return self::$redisCommon;
    }

}